/*
 * @Author: xiaosihan 
 * @Date: 2024-08-01 15:32:26 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2024-08-01 15:33:57
 */
import { customAlphabet } from 'nanoid';

class Utils {

    constructor() { }

    isDev = (process.env.NODE_ENV === "development");
    isTest = (process.env.NODE_ENV === "test");
    isProd = (process.env.NODE_ENV === "production");

    uuid(length: number = 6) {
        return customAlphabet('0123456789abcdefghijklmnopqrstuvwxyz', 10)(length);
    }

}
const utils = new Utils();
export default utils;